package com.brush.system.domain.resp.sysdept;

import com.brush.common.core.domain.entity.SysDept;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@ApiModel(value = "SysDeptQueryResp", description = "部门查询响应对象")
public class SysDeptQueryResp extends SysDeptResp {

    /**
     * 负责人
     */
    @ApiModelProperty(value = "负责人")
    private String leader;

    /**
     * 联系电话
     */
    @ApiModelProperty(value = "联系电话")
    private String phone;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱")
    private String email;


    public SysDeptQueryResp() {
    }

    public SysDeptQueryResp(SysDept dept) {
        super(dept);
        this.email = dept.getEmail();
        this.leader = dept.getLeader();
        this.phone = dept.getPhone();
    }
}
